package com.example.pojo.entitly;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName rostering
 */
public class Rostering implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 医生表ID
     */
    private Integer doctorId;

    /**
     * 科室表ID
     */
    private Integer departmentId;

    /**
     * 班别表ID
     */
    private Integer classCategoryId;

    /**
     * 日期
     */
    private Date dateTime;

    /**
     * 数据创建时间
     */
    private Date gmtCreate;

    /**
     * 数据最后修改时间
     */
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 医生表ID
     */
    public Integer getDoctorId() {
        return doctorId;
    }

    /**
     * 医生表ID
     */
    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * 科室表ID
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * 科室表ID
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 班别表ID
     */
    public Integer getClassCategoryId() {
        return classCategoryId;
    }

    /**
     * 班别表ID
     */
    public void setClassCategoryId(Integer classCategoryId) {
        this.classCategoryId = classCategoryId;
    }

    /**
     * 日期
     */
    public Date getDateTime() {
        return dateTime;
    }

    /**
     * 日期
     */
    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    /**
     * 数据创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 数据创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 数据最后修改时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * 数据最后修改时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Rostering other = (Rostering) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getClassCategoryId() == null ? other.getClassCategoryId() == null : this.getClassCategoryId().equals(other.getClassCategoryId()))
            && (this.getDateTime() == null ? other.getDateTime() == null : this.getDateTime().equals(other.getDateTime()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getClassCategoryId() == null) ? 0 : getClassCategoryId().hashCode());
        result = prime * result + ((getDateTime() == null) ? 0 : getDateTime().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", classCategoryId=").append(classCategoryId);
        sb.append(", dateTime=").append(dateTime);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}